// JavaScript Document

$(document).ready(function(){
$("#xyz").hover(function(){
$("#xyz").addClass("table-bg-gray");

},function(){$("#xyz").removeClass("table-bg-gray");
});
// next
$("#blk").hover(function(){
$("#blk").addClass("table-bg-gray");

},function(){$("#blk").removeClass("table-bg-gray");
});
// next
$("#blk1").hover(function(){
$("#blk1").addClass("table-bg-gray");

},function(){$("#blk1").removeClass("table-bg-gray");
});

// next
$("#blk2").hover(function(){
$("#blk2").addClass("table-bg-gray");

},function(){$("#blk2").removeClass("table-bg-gray");
});

// next
$("#blk3").hover(function(){
$("#blk3").addClass("table-bg-gray");

},function(){$("#blk3").removeClass("table-bg-gray");
});

// next
$("#blk4").hover(function(){
$("#blk4").addClass("table-bg-gray");

},function(){$("#blk4").removeClass("table-bg-gray");
});

// next
$("#blk5").hover(function(){
$("#blk5").addClass("table-bg-gray");

},function(){$("#blk5").removeClass("table-bg-gray");
});

// next
$("#blk6").hover(function(){
$("#blk6").addClass("table-bg-gray");

},function(){$("#blk6").removeClass("table-bg-gray");
});

// next
$("#blk7").hover(function(){
$("#blk7").addClass("table-bg-gray");

},function(){$("#blk7").removeClass("table-bg-gray");
});

// next
$("#blk8").hover(function(){
$("#blk8").addClass("table-bg-gray");

},function(){$("#blk8").removeClass("table-bg-gray");
});


});

/////////////////////////////////////////////////////////////////menuhover/////////////////////////////////////////////////////////////////////////////////////


function a(s1,s2,s3){
var s=$('#'+s1);
var a=$('#'+s2);
var b=$('.'+s3);
//alert(b);
//
//if(s){
if(s){
$(s).mouseover(function(){
$(b).css('background-color','#7faedd');
$(b).css('color','#000000');
//$(b).css('border-right',' 1em ridge #000000');
//$(b).css('border-top',' 1px ridge #000000');
//$(b).css('border-left',' 1px ridge #000000');
//$(b).css('border-bottom',' 0px ridge #000000');
$(a).slideDown(500);


});
}
}
function a1(s1,s2,s3){
var s=$('#'+s1);
var a=$('#'+s2);
var b=$('.'+s3);
if(s){
$(s).mouseleave(function(){
						 $(b).css('background-color','#0f558c');
						 $(b).css('color','#FFFFFF');
						 $(b).css('border',' 0px solid #000000');
$(a).slideUp(1);


});
}

}
//////////////////////////////////////////////watermarktexs insearch box////////////////////////////////////////////////////////////////
$(document).ready(function() {
var watermark = 'From';
$('#from').blur(function(){
if ($(this).val().length == 0)
$(this).val(watermark).addClass('watermark');
}).focus(function(){
if ($(this).val() == watermark)
$(this).val('').removeClass('watermark');
}).val(watermark).addClass('watermark');

var watermark1 = 'To';
$('#to').blur(function(){
if ($(this).val().length == 0)
$(this).val(watermark1).addClass('watermark');
}).focus(function(){
if ($(this).val() == watermark1)
$(this).val('').removeClass('watermark');
}).val(watermark1).addClass('watermark');

});

////////////////////////////////////////////////////////////////watermarktexs insearch box///////////////////////////////////////////////


///////////////////////////////////////////////////////////////////////reveiw/////////////////////////////////////////////////////////////////////////////////


$(document).ready(function(){
$("#mf12").mouseover(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) no-repeat 0px -34px")
$("#mf17").text("you choose very bad");
});
$("#mf12").mouseout(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -1px no-repeat")
$("#mf17").text("Roll over stars, then click to rate.");
});
$("#mf13").mouseover(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -69px no-repeat")
$("#mf17").text("you choose bad");
});
$("#mf13").mouseout(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -1px no-repeat")
$("#mf17").text("Roll over stars, then click to rate.");
});
$("#mf14").mouseover(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -103px no-repeat")
$("#mf17").text("you choose good");
});
$("#mf14").mouseout(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -1px no-repeat")
$("#mf17").text("Roll over stars, then click to rate.");
});
$("#mf15").mouseover(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -135px no-repeat")
$("#mf17").text("you choose very good");
});
$("#mf15").mouseout(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -1px no-repeat")
$("#mf17").text("Roll over stars, then click to rate.");
});
$("#mf16").mouseover(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -167px no-repeat")
$("#mf17").text("you choose perfect");
});
$("#mf16").mouseout(function(){
$("#starevaluationbutton").css("background","url(../images/rating_stars.png) 0px -1px no-repeat")
$("#mf17").text("Roll over stars, then click to rate.");
});
$("#mf12").click(function(){
//alert("hello");
$("#mf12").unbind("mouseout");
$("#starevaluationbutton").addClass("image-1");
//$("#mf17").text("you choosed lowest star");
alert("you choose very bad");

});
$("#mf13").click(function(){
//alert("hello");
$("#mf13").unbind("mouseout");
$("#starevaluationbutton").addClass("image-2");
//$("#mf17").text("you choosed lowest star");
alert("you choose bad");
});
$("#mf14").click(function(){
//alert("hello");
$("#mf14").unbind("mouseout");
$("#starevaluationbutton").addClass("image-3");
//$("#mf17").text("you choosed lowest star");.
alert("you choose good");
});
$("#mf15").click(function(){
//alert("hello");
$("#mf15").unbind("mouseout");
$("#starevaluationbutton").addClass("image-5");
//$("#mf17").text("you choosed lowest star");
alert("you choose very good");
});

$("#mf16").click(function(){
//alert("hello");
$("#mf16").unbind("mouseout");
$("#starevaluationbutton").addClass("image-6");
alert("you choose perfect");
//$("#mf17").text("you choosed lowest star");
});


});


////////////////////////////////////////////////////////////////////reveiw cloes//////////////////////////////////////////////////////////////////////////////////////



/////////////////////////////////////////////////////////////////-/+3days///////////////////////////////////////////////////////////////////////////////////////////

$(document).ready(function(){

});
function onmousehover_1(data,date_return,depart_date,image,price)
{
//alert("abhishek");
$("#"+data).addClass("flight-search-hover");
addextrainfo(data,image,price);
$("#"+date_return).css("background-color","#6B9CC5");
$("#"+date_return).css("color","#FFFFFF");

$("#"+depart_date).css("background-color","#6B9CC5");
}
function onmouserout_1(data,date_return,depart_date,image){
$("#"+data).removeClass("flight-search-hover");
remove_appned_data()
$("#"+date_return).css("background-color","rgb(255, 243, 198)");
$("#"+date_return).css("color","#000000");
$("#"+depart_date).css("background-color","#959899");
$("#"+depart_date).css("color","#FFFFFF").css("font-weight","normal");


}
function addextrainfo(id_value,image_airlines,Price){
//alert(Price);
$("#"+id_value).append("<div id='append' style='position:absolute; align:center;  width:120px; margin-top:8px;  border:1px solid #89add6; background-color:#ffffff;'><img src='../images/thum-logo/"+image_airlines+".jpg' style='padding-top:5px;' /><br/>&pound; <span style='color:red; font-size:14px; font-weight:bold;'>"+Price+"</span><br/><span style='font-family:Arial, Helvetica, sans-serif; font-size:11px; color:#666;'> Include All Taxes</span> </div>");

}
function remove_appned_data(){
$("#append").remove();
}

//////////////////////////////////////////plus minus///////////////////////////////////////

$(document).ready(function()
{$("#plus").click(function(){
$("#minus").slideToggle()})
//minus plus button function
.toggle(function(){
$("#plus").find("img").attr('src','../images/minus-main.gif');
},function(){
$("#plus").find("img").attr('src','../images/plus-main.gif');
});
//minus plus button function close
});
//////////////////////////////////////////plus minus/close//////////////////////////////////////

//////////////////////////////////////////////////////////////////////-/+3days/close///////////////////////////////////////////////////////////////////////////////
